<%@ page import="java.util.Objects" %>
<%@ page import="com.fhd.constant.Constants" %><%--
  Created by IntelliJ IDEA.
  User: 44252
  Date: 2025/3/31
  Time: 22:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>客户房型修改</title>
</head>
<body>
<h1>客户房型修改</h1>
<%
    // 修改房型返回信息
    String object = (String)request.getSession().getAttribute(Constants.UPDATE_HOUSE_MESSAGE);
    if (!Objects.isNull(object)) {
      out.print("<h4 style=\"color: red\">" + object + "</h4>");
      request.getSession().removeAttribute(Constants.UPDATE_HOUSE_MESSAGE);
    }
%>
<a href="<%=request.getContextPath()%>/merchant.do?method=getMerchantHouse">返回</a>
<br>
<span>请输入您要修改的信息：</span>
<br><br>
<form action="<%=request.getContextPath()%>/merchant.do">
  <input type="hidden" name="method" value="updateHouse">
  <input type="hidden" name="id" value="<%=request.getParameter("id")%>">
  <div>
    <label for="houseName">房型名：</label>
    <input type="text" name="houseName" id="houseName" maxlength="20">
  </div>
  <br>
  <div>
    <label for="price">价格：</label>
    <input type="number" name="price" id="price" min="1">
  </div>
  <br>
  <div>
    <label for="remainNumber">初始数目：</label>
    <input type="number" name="remainNumber" id="remainNumber" min="1">
  </div>
  <br>
  <div>
    <label for="keyWord">关键词：</label>
    <input type="text" name="keyWord" id="keyWord" maxlength="20">
  </div>
  <br>
  <input type="submit">
</form>

</body>
</html>
